package com.ea.admin.websocket;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.indunet.fastproto.annotation.Int16Type;
import org.indunet.fastproto.annotation.Int32Type;
import org.indunet.fastproto.annotation.StringType;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebsocketParam {
    byte[] file;
    @Int32Type(offset = 2)
    private Integer index;
    @StringType(offset = 6, length = 36)
    private String fileUUID;
    /**
     * 1: 短视频+识别人脸信息
     * 2: 短视频
     * 3: 合并视频
     * 4: 根据照片获得人脸信息
     * 5: 根据uuid获得未上传的文件的index list
     */
    @Int16Type(offset = 0)
    private Short type;
}

